package org.cfx.gift.dto;

import lombok.Data;
import org.cfx.gift.domain.Employee;
import org.cfx.gift.domain.Tenant;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author RTX 9090
 */
@Data
public class TenantDto {
    private Long id;
    @NotBlank(message = "租户名称不能为空！")
    private String companyName;
    @NotBlank(message = "租户电话不能为空！")
    private String companyNum;
    @NotBlank(message = "租户地址不能为空！")
    private String address;
    @NotBlank(message = "租户logo不能为空！")
    private String logo;
    @NotNull(message = "租户管理员不能为空！")
    private Employee admin;
    @NotNull(message = "租户套餐不能为空！")
    private Long mealId;
    private Boolean update;
}
